Clear pip Cache

您所在的位置:网站首页 pip clean cache Clear pip Cache

Clear pip Cache

#Clear pip Cache | 来源: 网络整理| 查看: 265

The pip has a caching mechanism that stores downloaded Python packages and locally built wheels. It allows speeding up package installation process because less amount of time is spent for downloading and building duplicates. There might be a case, that the pip don't update the package to the latest version because it retrieved from the cache. This tutorial shows how to clear pip cache.

Since pip 20.1, the pip cache command can be used for managing the pip cache. The purge argument allows clearing all cache.

pip cache purge pip3 cache purge

On Linux, the pip cache also stored in the /root/.cache/pip directory. To delete it, execute a command with sudo privileges:

sudo pip cache purge sudo pip3 cache purge

In versions prior to pip 20.1, delete the cache directory manually.

rd /s /q "%LocalAppData%\pip\cache" sudo rm -rf /root/.cache/pip rm -rf ~/.cache/pip


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3